<script setup></script>

<template>
  <!-- 列标签元素 “ ·----- ” -->
  <div style="display: flex; align-items: center; margin: 10px">
    <div class="circle" style="display: inline-block"></div>
    <a style="margin-left: 10px" class="text">
      <slot></slot>
    </a>
    <slot name="time"></slot>
  </div>
</template>

<style scoped>
.circle::before {
  content: '';
  height: 6px;
  width: 6px;
  border: 2px solid #d42c38;
  display: block;
  border-radius: 50%;
}
.text {
  background: linear-gradient(to right, #ec3742, #ec3742) no-repeat right bottom;
  background-size: 0px 2px;
  transition: background-size 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  text-align: left;
}
.text:hover {
  background-position: left bottom;
  background-size: 100% 2px;
  color: #ec3742;
  cursor: pointer;
}
</style>
